<?
require_once("admin/dbconnect.php");
require_once('admin/classes/rssfeed.php'); 

$sql = "SELECT customer.customer_id, customer.name, customer.surname,  customer.expectation 
FROM  customer WHERE customer.status = 'Y' order by customer.customer_id DESC LIMIT 200, 100";
                $rs = mysql_query($sql) or die(mysql_error());
                $cnt = mysql_num_rows($rs);                
                $rs = mysql_query($sql) or die(mysql_error());



$myfeed = new RSSFeed();

if(@mysql_num_rows($rs)>0){
while($row=mysql_fetch_array($rs)){

$name = $row['name']. " ".$row['surname'];
$expectation =$row['expectation'];
$customer_id =$row['customer_id'];

$myfeed->SetChannel('http://www.eparinay.com/xml.rss',
          'Find your Buddhist life Partner here- eparinay.com is totally free',
                  'Leading Buddhist Indian Matrimonials for Buddhist brides and buddhist grooms from across the world. Free Buddhist Matrimonial Registration and Search.',
          'en-us',
          'My copyright text',
                  'me',
          'my subject');
$myfeed->SetImage('http://www.eparinay.com/images/logo.jpg');
$myfeed->SetItem('http://eparinay.com/profile.php?cid='.$customer_id,
                $name ,
                $expectation);
}}
echo $myfeed->output();

?>